using Yuebon.Commons.Enums;

namespace Yuebon.Security.IServices;

/// <summary>
/// 定义定时任务服务接口
/// </summary>
public interface ITaskManagerService : IService<TaskManager, TaskManagerOutputDto>
{

    /// <summary>
    /// 记录任务运行结果
    /// </summary>
    /// <param name="jobId">任务Id</param>
    /// <param name="jobAction">任务执行动作</param>
    /// <param name="blresultTag">任务执行结果表示，true成功，false失败，初始执行为true</param>
    /// <param name="resume">结果简述</param>
    /// <param name="desc">返回消息详情</param>
    void RecordRun(long jobId, JobAction jobAction, bool blresultTag = true, string resume = "", string desc = "");
}
